package com.topfinance.cnaps2.ebo;

// Generated 2009-6-19 13:56:29 by Hibernate Tools 3.2.2.GA

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.topfinance.payment.ebo.TCfgProtocolEbo;

/**
 * SysDepartment generated by hbm2java
 */
@Entity
@Table(name = "T_CONF_OPERATION")
public class ConfOperationEbo implements java.io.Serializable {

	//oid	主键	integer
	private Integer uid;

	//name	名称	varchar2(40)
	private String name;

	//is_permit_up	是否允许	char(1)
	private String isPermitUp;
	
	//is_ack_up	期待回复	char(1)
	private String isAckUp;
	
	//ack_msg_up	回复报文	varchar2(200)
	private String ackMsgUp;
	
	//format_up	本地格式	varchar2(200)
	private String formatUp;
	
	//tmpl_up	转换模板	varchar2(200)
	private String convertTmplUp;
	
	//is_permit_dw	是否允许	char(1)
	private String isPermitDw;
	
	//is_ack_dw	期待回复	char(1)
	private String isAckDw;
	
	//ack_msg_dw	回复报文	varchar2(200)
	private String ackMsgDw;
	
	//format_dw	本地格式	varchar2(200)
	private String formatDw;
	
	//tmpl_dw	转换模板	varchar2(200)
	private String convertTmplDw;

	//prtcl_id	业务协议	integer
	private TCfgProtocolEbo prtclEbo;

	public ConfOperationEbo() {
    }

	@Id
	@Column(name = "OID", unique = true, nullable = false)
	@SequenceGenerator(name = "CONF_OPERATION_GEN", sequenceName = "S_CONF_OPERATION")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CONF_OPERATION_GEN")
    public Integer getUid() {
        return this.uid;
    }
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Column(name = "ack_msg_dw")
	public String getAckMsgDw() {
		return ackMsgDw;
	}
	public void setAckMsgDw(String ackMsgDw) {
		this.ackMsgDw = ackMsgDw;
	}

    @Column(name = "ack_msg_up")
	public String getAckMsgUp() {
		return ackMsgUp;
	}
	public void setAckMsgUp(String ackMsgUp) {
		this.ackMsgUp = ackMsgUp;
	}

    @Column(name = "tmpl_dw")
	public String getConvertTmplDw() {
		return convertTmplDw;
	}
	public void setConvertTmplDw(String convertTmplDw) {
		this.convertTmplDw = convertTmplDw;
	}

    @Column(name = "tmpl_up")
	public String getConvertTmplUp() {
		return convertTmplUp;
	}
	public void setConvertTmplUp(String convertTmplUp) {
		this.convertTmplUp = convertTmplUp;
	}

    @Column(name = "format_dw")
	public String getFormatDw() {
		return formatDw;
	}
	public void setFormatDw(String formatDw) {
		this.formatDw = formatDw;
	}

    @Column(name = "format_up")
    public String getFormatUp() {
		return formatUp;
	}
	public void setFormatUp(String formatUp) {
		this.formatUp = formatUp;
	}
	
    @Column(name = "is_ack_dw")
	public String getIsAckDw() {
		return isAckDw;
	}
	public void setIsAckDw(String isAckDw) {
		this.isAckDw = isAckDw;
	}

	@Column(name = "is_ack_up")
	public String getIsAckUp() {
		return isAckUp;
	}
	public void setIsAckUp(String isAckUp) {
		this.isAckUp = isAckUp;
	}

	@Column(name = "is_permit_dw")
	public String getIsPermitDw() {
		return isPermitDw;
	}
	public void setIsPermitDw(String isPermitDw) {
		this.isPermitDw = isPermitDw;
	}
	
    @Column(name = "is_permit_up")
	public String getIsPermitUp() {
		return isPermitUp;
	}
	public void setIsPermitUp(String isPermitUp) {
		this.isPermitUp = isPermitUp;
	}

    @Column(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}


    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "PRTCL_ID")
    public TCfgProtocolEbo getPrtclEbo() {
        return this.prtclEbo;
    }
	public void setPrtclEbo(TCfgProtocolEbo prtclEbo) {
		this.prtclEbo = prtclEbo;
	}    
	
}
